import collection from '@/router/collection.js' //图表的路由

const routerArr = [
    {
        path: '/',
        name: '首页',
        alias: '/index',
        component: () => import('@/views/Home/index'),
        children: [
        {
            path: '/',
            name: '首页',
            alias: '/index',
            component: () => import('@/components/date/date')
        }
        ],
        meta: {
            name:'首页',
            isLogin: true,
            level: 1, // 级别
            hidden: false,
            iconfont:'el-icon-location'
        }
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/login'),
        meta: {
            name:'登录',
            hidden: true,
            isLogin: false,
            level: 0 // 级别
        }
    },
    {
        path: '/Tasklog',
        component: () => import('@/views/Home/index'),
        name: 'Tasklog',
        meta: {
            name:'任务日志',
            isLogin: true,
            level: 2, // 级别
            hidden: false,
            iconfont:'el-icon-edit-outline'
        },
        children: [
            {
                path: '/tabExcel',
                name: 'tabExcel',
                component: () => import('@/components/tabExcel/tabExcel'),
                meta:{
                    name:'日志填写',
                }
            },
            {
                path: '/date',
                name: 'date',
                component: () => import('@/components/date/date'),
                meta:{
                    name:'任务日历',
                }
            }
        ]
    },
    {
        path: '/DailyTasks',
        name: 'DailyTasks',
        component: () => import('@/views/Home/index'),
        meta: {
            name: '日常任务',
            isLogin: true,
            level: 1, // 级别
            hidden: false,
            iconfont:'el-icon-location'
        },
        children: [
            {
                path: '/DailyTasks',
                name: '日常任务',
                component: () => import('@/views/editor/editor')
            }
        ]
    },
    {
        path: '/sssss',
        name: 'sssss',
        component: () => import('@/views/Home/index'),
        meta: {
            name: '日常办公',
            isLogin: true,
            level: 2, // 级别
            hidden: false,
            iconfont:'iconfont icon-xianxing_bangong'
        },
        children: [
            {
                path: '/DailyOffice/goOut',
                name: '/DailyOffice/goOut',
                component: () => import('@/views/DailyOffice/goOut/goOut'),
                meta:{
                    name: '外出',
                }
            },
            {
                path: '/sssss2',
                name: 'sssss2',
                component: () => import('@/components/date/date'),
                meta:{
                    name: '请假',
                }
            }
        ]
    },
    {
        path: '/collection',
        name: 'collection',
        component: () => import('@/views/Home/index'),
        meta: {
            name: '综合实例',
            isLogin: true,
            level: 1, // 级别
            hidden: false,
            iconfont:'el-icon-setting',
        },
        children: collection
    },
];

export default routerArr;
